package com.yeyv.net.Web.Utils;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeyv.net.Web.Entity.GameEntity;
import lombok.Data;

/**
 * 默认基类 BaseYvEntity
 * @author 若雨
 * @UpdateTime 2024年8月24日13点40分
 * @UpdateUser 若雨
 * @Warn 需要分页的Entity直接继承BaseYvEntity类
 */
@Data
public abstract class BaseYvEntity {
    /**
     * 默认分页 页数 1
     */
    @TableField(exist = false,select = false)
    private Integer pageNo = 1;

    /**
     * 默认分页 页行 12
     */
    @TableField(exist = false,select = false)
    private Integer pageSize = 12;

    /**
     * SORT BY ${sort}
     */
    @TableField(exist = false,select = false)
    private String sort;

    /**
     * ORDER BY ${order}
     */
    @TableField(exist = false,select = false)
    private String order;
}
